Skip to content

Add Tamara driver (BNPL, Saudi Arabia and the Gulf) - #37

Merged
elbanbydev merged 1 commit into
mainfrom
feature/gateway-tamara
Dec 4, 2026
Merged

elbanbydev merged 1 commit into
mainfrom
feature/gateway-tamara

Conversation

@elbanbydev

Copy link
Copy Markdown
Owner

Final driver on the agreed list: eighteenth international driver, second BNPL.

  • Hosted checkout session via POST /checkout; redirect to checkout_url
  • Notifications: HS256 JWT signed with the notification token, in both the Authorization header and the tamaraToken query parameter; verified in the driver, expiry checked, any other algorithm refused
  • approved is pending, authorised is paid; the documented authorise() call is exposed
  • Refunds require their amount; capture left to the documented API and said so in the README
  • TAMARA_* env vars, 16 fixture tests, README EN + AR, CHANGELOG, composer metadata

667 passed, PHPStan level 8 clean, Pint clean. Fixture-tested only; no live Tamara account has run it yet.

- TamaraClient: checkout session, get order, authorise, refunds
- TamaraGateway: hosted checkout, HS256 JWT notification verification, authorise, refunds
- approved reported pending, authorised paid; capture left to the documented API
- Config + TAMARA_* env vars, 16 fixture tests
- README EN + AR, CHANGELOG, composer metadata
@elbanbydev
elbanbydev merged commit 381f080 into main Dec 4, 2026
8 checks passed
@elbanbydev
elbanbydev deleted the feature/gateway-tamara branch December 4, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants